package com.xzy.Service;

import org.springframework.stereotype.Component;

/**
 * 具体策略3
 * 老用户，小批量
 */
@Component("customer3")
public class OldCustomerFewStrategy implements Strategy{
    @Override
    public double getPrice( double price) {
        System.out.println("打八折");
        return price*0.8;
    }
}
